package io.renren.com.qywt.service.impl;

import io.renren.com.qywt.dao.TradeDao;
import io.renren.com.qywt.dto.TradeDTO;
import io.renren.commons.dynamic.datasource.annotation.DataSource;
import io.renren.commons.mybatis.service.impl.BaseServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;


@Service
public class WmsTradeServiceImpl extends BaseServiceImpl<TradeDao, TradeDTO> {
    @DataSource("slave1")
    public TradeDTO getTradeByCarrierNo(String carrierNo) {
        if(StringUtils.isNotBlank(carrierNo)){
            return baseDao.getTradeByCarrierNo(carrierNo);
        }
        return null;
    }
}
